package cn.school.workflow.service;

import cn.school.workflow.vo.WorkPlanPersonVO;
import cn.school.workflow.vo.WorkPlanVO;
import com.baomidou.mybatisplus.core.metadata.IPage;

public interface WorkPlanService {
    /**
     * 分页查询工作计划
     * @param vo
     * @return
     */
    IPage<WorkPlanVO> findWorkPlanPageList(WorkPlanVO vo);

    /**
     * 新增或修改工作计划
     * @param vo
     * @return
     */
    int addOrUpdateWorkPlan(WorkPlanVO vo);

    /**
     * 删除工作计划
     * @param id
     * @return
     */
    int deleteWorkPlanById(Long id);

    /**
     * 查看计划中执行人的完成情况
     * @param vo
     * @return
     */
    IPage<WorkPlanPersonVO> findPersonPlanListByPlanId(WorkPlanPersonVO vo);

    /**
     * 修改自己的计划进度
     * @param vo
     * @return
     */
    int updateMySafePlan(WorkPlanPersonVO vo);
}
